package com.example.easypoi.service.impl;

import com.example.easypoi.mapper.BankMapper;
import com.example.easypoi.model.Bank;
import com.example.easypoi.service.BankService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BankServiceImpl implements BankService {

    @Resource
    private BankMapper bankMapper;

    @Override
    public Integer AddBank(List<Bank> bank) {
        return bankMapper.AddBank(bank);
    }

    @Override
    public List<Bank> queryList(Integer ofThePublic) {
        return bankMapper.queryList(ofThePublic);
    }

    @Override
    public Integer AddBankTest(Integer ofThePublic) {
        List<Bank> banks = bankMapper.queryList(ofThePublic);
        return bankMapper.AddBankTest(banks);
    }
}
